package com.alfayun.fiscalriskanalysis.javaFunction;

import java.math.BigDecimal;
import java.util.List;
import java.util.function.Function;

public class Less implements Function<List<BigDecimal>, Boolean> {

	@Override
	public Boolean apply(List<BigDecimal> params) {
		int result = params.get(0).compareTo(params.get(1));
		if(result < 0) {
			return true;
		}
		return false;
	}

}
